package com.aptemo.webetek.client.events;

import com.aptemo.webetek.shared.UserBean;
import com.google.gwt.event.shared.GwtEvent;

public class LoginEvent
		extends GwtEvent<LoginEventHandler>
{

	public static final GwtEvent.Type<LoginEventHandler>	TYPE	= new GwtEvent.Type<LoginEventHandler>();

	private UserBean										muserinfo;

	public LoginEvent(UserBean userinfo)
	{
		muserinfo = userinfo;
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<LoginEventHandler> getAssociatedType()
	{
		return TYPE;
	}

	@Override
	protected void dispatch(LoginEventHandler handler)
	{
		// 
		handler.onLoggedIn(this);

	}

	public void setUserinfo(UserBean muserinfo)
	{
		this.muserinfo = muserinfo;
	}

	public UserBean getUserinfo()
	{
		return muserinfo;
	}
}
